<?php

namespace App\Model;

use Illuminate\Database\Eloquent\Model;

/**
 * @property string $title
 */
class OADept extends Model
{
    protected $table = 'dept';

    public $timestamps = false;

    //获取所有部门
    public static function getAllDept()
    {
        return self::query()->where('status',1)->select(['title','id'])->get()->toArray();
    }
}
